package cn.xej.health.user.dao;

import cn.xej.health.user.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xej
 */
@Mapper
public interface MenuDao extends BaseMapper<Menu> {
    /**
     * 获取用户菜单
     * @param rid
     * @return
     */
    List<Menu> queryMenuList(@Param("rid") Integer rid);

    /**
     * 根据角色id获取菜单id
     * @param rid
     * @return
     */
    List<Integer> queryMenuIdList(@Param("rid")Integer rid);
}
